package api

import (
	"dynamic-private/internal/ctl"
	"dynamic-private/pkg/base"
)

// 方法命名与文件名保持一致

func dynamicAdminApi(pre string) {
	rGroup := base.GinEngine.Group(pre + "/admin-dynamic-private")
	{
		//查询动态后台管理
		rGroup.POST("/posts", ctl.QueryDynamicAdminList)
		//审核动态
		rGroup.POST("/posts/audit", ctl.AuditDynamicAdmin)
		//隐藏或显示动态
		rGroup.POST("/posts/hide", ctl.HideDynamicAdmin)

		//查询动态评论后台管理
		rGroup.POST("/posts/comment", ctl.QueryDynamicCommentAdminList)
		//审核评论
		rGroup.POST("posts/comment/audit", ctl.AuditDynamicComment)
		//隐藏（删除）或显示评论
		rGroup.POST("/posts/comment/hide", ctl.HideDynamicComment)

	}

}
